/*@license For license information please refer to core.licenses.txt*/ (self.webpackChunkgo_guides=self.webpackChunkgo_guides||[]).push([[321],{29323:function(e,t,n){n.d(t,{Pi:function(){return E},f3:function(){return R},yX:function(){return P},zt:function(){return N}});var r=n(68949),a=n(67294),i=n(50242);function o(e,t){if(l(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var a=0;a2?r-2:0),i=2;i"}function b(e){var t=e.bind(this),n=g(this);return function(){n.reaction||(n.reaction=function(t){return new r.le(t.name+".render()",(function(){if(!t.isUpdating&&t.mounted)try{t.isUpdating=!0,null==t.forceUpdate||t.forceUpdate()}catch(e){var n;null==(n=t.reaction)||n.dispose(),t.reaction=null}finally{t.isUpdating=!1}}))}(n),n.mounted||i.jd.register(this,n,this));var e=void 0,a=void 0;if(n.reaction.track((function(){try{a=(0,r.$$)(!1,t)}catch(n){e=n}})),e)throw e;return a}}function _(e,t){return(0,i.FY)()&&console.warn("[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==t||!o(this.props,e)}function w(e){var t=e+"Atom";return{configurable:!0,enumerable:!0,get:function(){var n=g(this),a=(0,r.wM)(!0);return n[t].reportObserved(),(0,r.mJ)(a),n[e]},set:function(n){var r=g(this);r.isUpdating||o(r[e],n)?r[e]=n:(r[e]=n,r.isUpdating=!0,r[t].reportChanged(),r.isUpdating=!1)}}}var k=w("props"),S=w("state"),x=w("context");function E(e){return!0===e.isMobxInjector&&console.warn("Mobx observer: You are trying to use `observer` on a component that already has `inject`. Please apply `observer` before applying `inject`"),Object.prototype.isPrototypeOf.call(a.Component,e)||Object.prototype.isPrototypeOf.call(a.PureComponent,e)?function(e){var t=e.prototype;if(e[m]){var n=y(e);console.warn("The provided component class ("+n+")\n has already been declared as an observer component.")}else e[m]=!0;if(t.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(e.__proto__!==a.PureComponent)if(t.shouldComponentUpdate){if(t.shouldComponentUpdate!==_)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}else t.shouldComponentUpdate=_;Object.defineProperties(t,{props:k,state:S,context:x});var r=t.render;if("function"!=typeof r){var o=y(e);throw new Error("[mobx-react] class component ("+o+") is missing `render` method.\n`observer` requires `render` being a function defined on prototype.\n`render = () => {}` or `render = function() {}` is not supported.")}return t.render=function(){return Object.defineProperty(this,"render",{configurable:!1,writable:!1,value:(0,i.FY)()?r:b.call(this,r)}),this.render()},p(t,"componentDidMount",(function(){var e=this,t=g(this);t.mounted=!0,i.jd.unregister(t),t.forceUpdate=function(){return e.forceUpdate()},t.reaction||t.forceUpdate()})),p(t,"componentWillUnmount",(function(){var e;if(!(0,i.FY)()){var t=g(this);null==(e=t.reaction)||e.dispose(),t.reaction=null,t.forceUpdate=null,t.mounted=!1}})),e}(e):(0,i.Pi)(e)}function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,C),r=a.useContext(P),i=a.useRef(O({},r,n)).current;return a.createElement(P.Provider,{value:i},t)}function A(e,t,n,r){var i,o,l,s=a.forwardRef((function(n,r){var i=O({},n),o=a.useContext(P);return Object.assign(i,e(o||{},i)||{}),r&&(i.ref=r),a.createElement(t,i)}));return r&&(s=E(s)),s.isMobxInjector=!0,i=t,o=s,l=Object.getOwnPropertyNames(Object.getPrototypeOf(i)),Object.getOwnPropertyNames(i).forEach((function(e){u[e]||-1!==l.indexOf(e)||Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(i,e))})),s.wrappedComponent=t,s.displayName=function(e,t){var n,r=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";n=t?"inject-with-"+t+"("+r+")":"inject("+r+")";return n}(t,n),s}function R(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),r=1;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var I=Symbol("mobx-stored-annotations");function V(e){return Object.assign((function(t,n){if(B(n))return e.decorate_20223_(t,n);F(t,n,e)}),e)}function F(e,t,n){N(e,I)||w(e,I,L({},e[I])),function(e){return e.annotationType_===Z}(n)||(e[I][t]=n)}function B(e){return"object"==typeof e&&"string"==typeof e.kind}var H=Symbol("mobx administration"),W=function(){function e(e){void 0===e&&(e="Atom"),this.name_=void 0,this.isPendingUnobservation_=!1,this.isBeingObserved_=!1,this.observers_=new Set,this.diffValue_=0,this.lastAccessedBy_=0,this.lowestObserverState_=Ze.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=e}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach((function(e){return e()}))},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(e){return e()}))},t.reportObserved=function(){return wt(this)},t.reportChanged=function(){bt(),kt(this),_t()},t.toString=function(){return this.name_},e}(),$=S("Atom",W);function K(e,t,n){void 0===t&&(t=v),void 0===n&&(n=v);var r,a=new W(e);return t!==v&&Qt(Wt,a,t,r),n!==v&&Kt(a,n),a}var Q={identity:function(e,t){return e===t},structural:function(e,t){return br(e,t)},default:function(e,t){return Object.is?Object.is(e,t):e===t?0!==e||1/e==1/t:e!=e&&t!=t},shallow:function(e,t){return br(e,t,1)}};function q(e,t,n){return cn(e)?e:Array.isArray(e)?Te.array(e,{name:n}):b(e)?Te.object(e,void 0,{name:n}):x(e)?Te.map(e,{name:n}):E(e)?Te.set(e,{name:n}):"function"!=typeof e||Vt(e)||un(e)?e:_(e)?on(e):Ut(n,e)}function G(e){return e}var Z="override";function X(e,t){return{annotationType_:e,options_:t,make_:Y,extend_:J,decorate_20223_:ee}}function Y(e,t,n,r){var a;if(null!=(a=this.options_)&&a.bound)return null===this.extend_(e,t,n,!1)?0:1;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(Vt(n.value))return 1;var i=te(e,this,t,n,!1);return l(r,t,i),2}function J(e,t,n,r){var a=te(e,this,t,n);return e.defineProperty_(t,a,r)}function ee(e,t){var n=t.kind,a=t.name,i=t.addInitializer,o=this;if("field"!=n){var l,u,s,c,f,d;if("method"==n)return Vt(e)||(u=e,e=Be(null!=(s=null==(c=o.options_)?void 0:c.name)?s:a.toString(),u,null!=(f=null==(d=o.options_)?void 0:d.autoAction)&&f)),null!=(l=this.options_)&&l.bound&&i((function(){var e=this,t=e[a].bind(e);t.isMobxAction=!0,e[a]=t})),e;r("Cannot apply '"+o.annotationType_+"' to '"+String(a)+"' (kind: "+n+"):\n'"+o.annotationType_+"' can only be used on properties with a function value.")}else i((function(){F(this,a,o)}))}function te(e,t,n,r,a){var i,o,l,u,s,c,f,d;void 0===a&&(a=vt.safeDescriptors),d=r,t.annotationType_,d.value;var p,h=r.value;null!=(i=t.options_)&&i.bound&&(h=h.bind(null!=(p=e.proxy_)?p:e.target_));return{value:Be(null!=(o=null==(l=t.options_)?void 0:l.name)?o:n.toString(),h,null!=(u=null==(s=t.options_)?void 0:s.autoAction)&&u,null!=(c=t.options_)&&c.bound?null!=(f=e.proxy_)?f:e.target_:void 0),configurable:!a||e.isPlainObject_,enumerable:!1,writable:!a}}function ne(e,t){return{annotationType_:e,options_:t,make_:re,extend_:ae,decorate_20223_:ie}}function re(e,t,n,r){var a;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(null!=(a=this.options_)&&a.bound&&(!N(e.target_,t)||!un(e.target_[t]))&&null===this.extend_(e,t,n,!1))return 0;if(un(n.value))return 1;var i=oe(e,this,t,n,!1,!1);return l(r,t,i),2}function ae(e,t,n,r){var a,i=oe(e,this,t,n,null==(a=this.options_)?void 0:a.bound);return e.defineProperty_(t,i,r)}function ie(e,t){var n;var r=t.name,a=t.addInitializer;return un(e)||(e=on(e)),null!=(n=this.options_)&&n.bound&&a((function(){var e=this,t=e[r].bind(e);t.isMobXFlow=!0,e[r]=t})),e}function oe(e,t,n,r,a,i){var o;void 0===i&&(i=vt.safeDescriptors),o=r,t.annotationType_,o.value;var l,u=r.value;(un(u)||(u=on(u)),a)&&((u=u.bind(null!=(l=e.proxy_)?l:e.target_)).isMobXFlow=!0);return{value:u,configurable:!i||e.isPlainObject_,enumerable:!1,writable:!i}}function le(e,t){return{annotationType_:e,options_:t,make_:ue,extend_:se,decorate_20223_:ce}}function ue(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function se(e,t,n,r){return function(e,t,n,r){t.annotationType_,r.get;0}(0,this,0,n),e.defineComputedProperty_(t,L({},this.options_,{get:n.get,set:n.set}),r)}function ce(e,t){var n=this,r=t.name;return(0,t.addInitializer)((function(){var t=Xn(this)[H],a=L({},n.options_,{get:e,context:this});a.name||(a.name="ObservableObject."+r.toString()),t.values_.set(r,new Ye(a))})),function(){return this[H].getObservablePropValue_(r)}}function fe(e,t){return{annotationType_:e,options_:t,make_:de,extend_:pe,decorate_20223_:he}}function de(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function pe(e,t,n,r){var a,i;return function(e,t,n,r){t.annotationType_;0}(0,this),e.defineObservableProperty_(t,n.value,null!=(a=null==(i=this.options_)?void 0:i.enhancer)?a:q,r)}function he(e,t){var n=this,r=t.kind,a=t.name,i=new WeakSet;function o(e,t){var r,o,l=Xn(e)[H],u=new qe(t,null!=(r=null==(o=n.options_)?void 0:o.enhancer)?r:q,"ObservableObject."+a.toString(),!1);l.values_.set(a,u),i.add(e)}if("accessor"==r)return{get:function(){return i.has(this)||o(this,e.get.call(this)),this[H].getObservablePropValue_(a)},set:function(e){return i.has(this)||o(this,e),this[H].setObservablePropValue_(a,e)},init:function(e){return i.has(this)||o(this,e),e}}}var ve="true",me=ge();function ge(e){return{annotationType_:ve,options_:e,make_:ye,extend_:be,decorate_20223_:_e}}function ye(e,t,n,r){var a,i,o,u;if(n.get)return Me.make_(e,t,n,r);if(n.set){var s=Be(t.toString(),n.set);return r===e.target_?null===e.defineProperty_(t,{configurable:!vt.safeDescriptors||e.isPlainObject_,set:s})?0:2:(l(r,t,{configurable:!0,set:s}),2)}if(r!==e.target_&&"function"==typeof n.value)return _(n.value)?(null!=(u=this.options_)&&u.autoBind?on.bound:on).make_(e,t,n,r):(null!=(o=this.options_)&&o.autoBind?Ut.bound:Ut).make_(e,t,n,r);var c,f=!1===(null==(a=this.options_)?void 0:a.deep)?Te.ref:Te;"function"==typeof n.value&&null!=(i=this.options_)&&i.autoBind&&(n.value=n.value.bind(null!=(c=e.proxy_)?c:e.target_));return f.make_(e,t,n,r)}function be(e,t,n,r){var a,i,o;if(n.get)return Me.extend_(e,t,n,r);if(n.set)return e.defineProperty_(t,{configurable:!vt.safeDescriptors||e.isPlainObject_,set:Be(t.toString(),n.set)},r);"function"==typeof n.value&&null!=(a=this.options_)&&a.autoBind&&(n.value=n.value.bind(null!=(o=e.proxy_)?o:e.target_));return(!1===(null==(i=this.options_)?void 0:i.deep)?Te.ref:Te).extend_(e,t,n,r)}function _e(e,t){r("'"+this.annotationType_+"' cannot be used as a decorator")}var we={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function ke(e){return e||we}Object.freeze(we);var Se=fe("observable"),xe=fe("observable.ref",{enhancer:G}),Ee=fe("observable.shallow",{enhancer:function(e,t,n){return null==e||er(e)||Dn(e)||Wn(e)||Qn(e)?e:Array.isArray(e)?Te.array(e,{name:n,deep:!1}):b(e)?Te.object(e,void 0,{name:n,deep:!1}):x(e)?Te.map(e,{name:n,deep:!1}):E(e)?Te.set(e,{name:n,deep:!1}):void 0}}),Oe=fe("observable.struct",{enhancer:function(e,t){return br(e,t)?t:e}}),Ce=V(Se);function Pe(e){return!0===e.deep?q:!1===e.deep?G:(t=e.defaultDecorator)&&null!=(n=null==(r=t.options_)?void 0:r.enhancer)?n:q;var t,n,r}function Ne(e,t,n){return B(t)?Se.decorate_20223_(e,t):g(t)?void F(e,t,Se):cn(e)?e:b(e)?Te.object(e,t,n):Array.isArray(e)?Te.array(e,t):x(e)?Te.map(e,t):E(e)?Te.set(e,t):"object"==typeof e&&null!==e?e:Te.box(e,t)}i(Ne,Ce);var Ae,Re,Te=i(Ne,{box:function(e,t){var n=ke(t);return new qe(e,Pe(n),n.name,!0,n.equals)},array:function(e,t){var n=ke(t);return(!1===vt.useProxies||!1===n.proxy?pr:Pn)(e,Pe(n),n.name)},map:function(e,t){var n=ke(t);return new Hn(e,Pe(n),n.name)},set:function(e,t){var n=ke(t);return new Kn(e,Pe(n),n.name)},object:function(e,t,n){return gr((function(){return Yt(!1===vt.useProxies||!1===(null==n?void 0:n.proxy)?Xn({},n):function(e,t){var n,r;return p(),e=Xn(e,t),null!=(r=(n=e[H]).proxy_)?r:n.proxy_=new Proxy(e,mn)}({},n),e,t)}))},ref:V(xe),shallow:V(Ee),deep:Ce,struct:V(Oe)}),Le="computed",ze=le(Le),je=le("computed.struct",{equals:Q.structural}),Me=function(e,t){if(B(t))return ze.decorate_20223_(e,t);if(g(t))return F(e,t,ze);if(b(e))return V(le(Le,e));var n=b(t)?t:{};return n.get=e,n.name||(n.name=e.name||""),new Ye(n)};Object.assign(Me,ze),Me.struct=V(je);var De,Ue=0,Ie=1,Ve=null!=(Ae=null==(Re=o((function(){}),"name"))?void 0:Re.configurable)&&Ae,Fe={value:"action",configurable:!0,writable:!1,enumerable:!1};function Be(e,t,n,r){function a(){return He(e,n,t,r||this,arguments)}return void 0===n&&(n=!1),a.isMobxAction=!0,a.toString=function(){return t.toString()},Ve&&(Fe.value=e,l(a,"name",Fe)),a}function He(e,t,n,a,i){var o=function(e,t,n,r){var a=!1,i=0;0;var o=vt.trackingDerivation,l=!t||!o;bt();var u=vt.allowStateChanges;l&&(lt(),u=$e(!0));var s=st(!0),c={runAsAction_:l,prevDerivation_:o,prevAllowStateChanges_:u,prevAllowStateReads_:s,notifySpy_:a,startTime_:i,actionId_:Ie++,parentActionId_:Ue};return Ue=c.actionId_,c}(0,t);try{return n.apply(a,i)}catch(l){throw o.error_=l,l}finally{!function(e){Ue!==e.actionId_&&r(30);Ue=e.parentActionId_,void 0!==e.error_&&(vt.suppressReactionErrors=!0);Ke(e.prevAllowStateChanges_),ct(e.prevAllowStateReads_),_t(),e.runAsAction_&&ut(e.prevDerivation_);0;vt.suppressReactionErrors=!1}(o)}}function We(e,t){var n=$e(e);try{return t()}finally{Ke(n)}}function $e(e){var t=vt.allowStateChanges;return vt.allowStateChanges=e,t}function Ke(e){vt.allowStateChanges=e}De=Symbol.toPrimitive;var Qe,qe=function(e){function t(t,n,r,a,i){var o;return void 0===r&&(r="ObservableValue"),void 0===a&&(a=!0),void 0===i&&(i=Q.default),(o=e.call(this,r)||this).enhancer=void 0,o.name_=void 0,o.equals=void 0,o.hasUnreportedChange_=!1,o.interceptors_=void 0,o.changeListeners_=void 0,o.value_=void 0,o.dehancer=void 0,o.enhancer=n,o.name_=r,o.equals=i,o.value_=n(t,void 0,r),o}z(t,e);var n=t.prototype;return n.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},n.set=function(e){this.value_;if((e=this.prepareNewValue_(e))!==vt.UNCHANGED){0,this.setNewValue_(e)}},n.prepareNewValue_=function(e){if(rt(this),gn(this)){var t=bn(this,{object:this,type:En,newValue:e});if(!t)return vt.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value_,this.name_),this.equals(this.value_,e)?vt.UNCHANGED:e},n.setNewValue_=function(e){var t=this.value_;this.value_=e,this.reportChanged(),_n(this)&&kn(this,{type:En,object:this,newValue:e,oldValue:t})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(e){return yn(this,e)},n.observe_=function(e,t){return t&&e({observableKind:"value",debugObjectName:this.name_,object:this,type:En,newValue:this.value_,oldValue:void 0}),wn(this,e)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+"["+this.value_+"]"},n.valueOf=function(){return P(this.get())},n[De]=function(){return this.valueOf()},t}(W),Ge=S("ObservableValue",qe);Qe=Symbol.toPrimitive;var Ze,Xe,Ye=function(){function e(e){this.dependenciesState_=Ze.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.isBeingObserved_=!1,this.isPendingUnobservation_=!1,this.observers_=new Set,this.diffValue_=0,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=Ze.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new et(null),this.name_=void 0,this.triggeredBy_=void 0,this.isComputing_=!1,this.isRunningSetter_=!1,this.derivation=void 0,this.setter_=void 0,this.isTracing_=Xe.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,e.get||r(31),this.derivation=e.get,this.name_=e.name||"ComputedValue",e.set&&(this.setter_=Be("ComputedValue-setter",e.set)),this.equals_=e.equals||(e.compareStructural||e.struct?Q.structural:Q.default),this.scope_=e.context,this.requiresReaction_=e.requiresReaction,this.keepAlive_=!!e.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){!function(e){if(e.lowestObserverState_!==Ze.UP_TO_DATE_)return;e.lowestObserverState_=Ze.POSSIBLY_STALE_,e.observers_.forEach((function(e){e.dependenciesState_===Ze.UP_TO_DATE_&&(e.dependenciesState_=Ze.POSSIBLY_STALE_,e.onBecomeStale_())}))}(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach((function(e){return e()}))},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(e){return e()}))},t.get=function(){if(this.isComputing_&&r(32,this.name_,this.derivation),0!==vt.inBatch||0!==this.observers_.size||this.keepAlive_){if(wt(this),nt(this)){var e=vt.trackingContext;this.keepAlive_&&!e&&(vt.trackingContext=this),this.trackAndCompute()&&function(e){if(e.lowestObserverState_===Ze.STALE_)return;e.lowestObserverState_=Ze.STALE_,e.observers_.forEach((function(t){t.dependenciesState_===Ze.POSSIBLY_STALE_?t.dependenciesState_=Ze.STALE_:t.dependenciesState_===Ze.UP_TO_DATE_&&(e.lowestObserverState_=Ze.UP_TO_DATE_)}))}(this),vt.trackingContext=e}}else nt(this)&&(this.warnAboutUntrackedRead_(),bt(),this.value_=this.computeValue_(!1),_t());var t=this.value_;if(tt(t))throw t.cause;return t},t.set=function(e){if(this.setter_){this.isRunningSetter_&&r(33,this.name_),this.isRunningSetter_=!0;try{this.setter_.call(this.scope_,e)}finally{this.isRunningSetter_=!1}}else r(34,this.name_)},t.trackAndCompute=function(){var e=this.value_,t=this.dependenciesState_===Ze.NOT_TRACKING_,n=this.computeValue_(!0),r=t||tt(e)||tt(n)||!this.equals_(e,n);return r&&(this.value_=n),r},t.computeValue_=function(e){this.isComputing_=!0;var t,n=$e(!1);if(e)t=at(this,this.derivation,this.scope_);else if(!0===vt.disableErrorBoundaries)t=this.derivation.call(this.scope_);else try{t=this.derivation.call(this.scope_)}catch(r){t=new et(r)}return Ke(n),this.isComputing_=!1,t},t.suspend_=function(){this.keepAlive_||(it(this),this.value_=void 0)},t.observe_=function(e,t){var n=this,r=!0,a=void 0;return Ft((function(){var i=n.get();if(!r||t){var o=lt();e({observableKind:"computed",debugObjectName:n.name_,type:En,object:n,newValue:i,oldValue:a}),ut(o)}r=!1,a=i}))},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return P(this.get())},t[Qe]=function(){return this.valueOf()},e}(),Je=S("ComputedValue",Ye);!function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"}(Ze||(Ze={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(Xe||(Xe={}));var et=function(e){this.cause=void 0,this.cause=e};function tt(e){return e instanceof et}function nt(e){switch(e.dependenciesState_){case Ze.UP_TO_DATE_:return!1;case Ze.NOT_TRACKING_:case Ze.STALE_:return!0;case Ze.POSSIBLY_STALE_:for(var t=st(!0),n=lt(),r=e.observing_,a=r.length,i=0;ir&&(r=l.dependenciesState_)}n.length=a,e.newObserving_=null,i=t.length;for(;i--;){var u=t[i];0===u.diffValue_&>(u,e),u.diffValue_=0}for(;a--;){var s=n[a];1===s.diffValue_&&(s.diffValue_=0,mt(s,e))}r!==Ze.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}(e),ct(r),a}function it(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)gt(t[n],e);e.dependenciesState_=Ze.NOT_TRACKING_}function ot(e){var t=lt();try{return e()}finally{ut(t)}}function lt(){var e=vt.trackingDerivation;return vt.trackingDerivation=null,e}function ut(e){vt.trackingDerivation=e}function st(e){var t=vt.allowStateReads;return vt.allowStateReads=e,t}function ct(e){vt.allowStateReads=e}function ft(e){if(e.dependenciesState_!==Ze.UP_TO_DATE_){e.dependenciesState_=Ze.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=Ze.UP_TO_DATE_}}var dt=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},pt=!0,ht=!1,vt=function(){var e=a();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(pt=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new dt).version&&(pt=!1),pt?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new dt):(setTimeout((function(){ht||r(35)}),1),new dt)}();function mt(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function gt(e,t){e.observers_.delete(t),0===e.observers_.size&&yt(e)}function yt(e){!1===e.isPendingUnobservation_&&(e.isPendingUnobservation_=!0,vt.pendingUnobservations.push(e))}function bt(){vt.inBatch++}function _t(){if(0==--vt.inBatch){Ot();for(var e=vt.pendingUnobservations,t=0;t0&&yt(e),!1)}function kt(e){e.lowestObserverState_!==Ze.STALE_&&(e.lowestObserverState_=Ze.STALE_,e.observers_.forEach((function(e){e.dependenciesState_===Ze.UP_TO_DATE_&&e.onBecomeStale_(),e.dependenciesState_=Ze.STALE_})))}var St=function(){function e(e,t,n,r){void 0===e&&(e="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=Ze.NOT_TRACKING_,this.diffValue_=0,this.runId_=0,this.unboundDepsCount_=0,this.isDisposed_=!1,this.isScheduled_=!1,this.isTrackPending_=!1,this.isRunning_=!1,this.isTracing_=Xe.NONE,this.name_=e,this.onInvalidate_=t,this.errorHandler_=n,this.requiresObservable_=r}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled_||(this.isScheduled_=!0,vt.pendingReactions.push(this),Ot())},t.isScheduled=function(){return this.isScheduled_},t.runReaction_=function(){if(!this.isDisposed_){bt(),this.isScheduled_=!1;var e=vt.trackingContext;if(vt.trackingContext=this,nt(this)){this.isTrackPending_=!0;try{this.onInvalidate_()}catch(t){this.reportExceptionInDerivation_(t)}}vt.trackingContext=e,_t()}},t.track=function(e){if(!this.isDisposed_){bt();0,this.isRunning_=!0;var t=vt.trackingContext;vt.trackingContext=this;var n=at(this,e,void 0);vt.trackingContext=t,this.isRunning_=!1,this.isTrackPending_=!1,this.isDisposed_&&it(this),tt(n)&&this.reportExceptionInDerivation_(n.cause),_t()}},t.reportExceptionInDerivation_=function(e){var t=this;if(this.errorHandler_)this.errorHandler_(e,this);else{if(vt.disableErrorBoundaries)throw e;var n="[mobx] uncaught error in '"+this+"'";vt.suppressReactionErrors||console.error(n,e),vt.globalReactionErrorHandlers.forEach((function(n){return n(e,t)}))}},t.dispose=function(){this.isDisposed_||(this.isDisposed_=!0,this.isRunning_||(bt(),it(this),_t()))},t.getDisposer_=function(e){var t=this,n=function n(){t.dispose(),null==e||null==e.removeEventListener||e.removeEventListener("abort",n)};return null==e||null==e.addEventListener||e.addEventListener("abort",n),n[H]=this,n},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(e){void 0===e&&(e=!1)},e}();var xt=100,Et=function(e){return e()};function Ot(){vt.inBatch>0||vt.isRunningReactions||Et(Ct)}function Ct(){vt.isRunningReactions=!0;for(var e=vt.pendingReactions,t=0;e.length>0;){++t===xt&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,a=n.length;r0&&(n.dependencies=(t=e.observing_,Array.from(new Set(t))).map(en)),n}var tn=0;function nn(){this.message="FLOW_CANCELLED"}nn.prototype=Object.create(Error.prototype);var rn=ne("flow"),an=ne("flow.bound",{bound:!0}),on=Object.assign((function(e,t){if(B(t))return rn.decorate_20223_(e,t);if(g(t))return F(e,t,rn);var n=e,r=n.name||"",a=function(){var e,t=arguments,a=++tn,i=Dt(r+" - runid: "+a+" - init",n).apply(this,t),o=void 0,l=new Promise((function(t,n){var l=0;function u(e){var t;o=void 0;try{t=Dt(r+" - runid: "+a+" - yield "+l++,i.next).call(i,e)}catch(u){return n(u)}c(t)}function s(e){var t;o=void 0;try{t=Dt(r+" - runid: "+a+" - yield "+l++,i.throw).call(i,e)}catch(u){return n(u)}c(t)}function c(e){if(!m(null==e?void 0:e.then))return e.done?t(e.value):(o=Promise.resolve(e.value)).then(u,s);e.then(c,n)}e=n,u(void 0)}));return l.cancel=Dt(r+" - runid: "+a+" - cancel",(function(){try{o&&ln(o);var t=i.return(void 0),n=Promise.resolve(t.value);n.then(v,v),ln(n),e(new nn)}catch(r){e(r)}})),l};return a.isMobXFlow=!0,a}),rn);function ln(e){m(e.cancel)&&e.cancel()}function un(e){return!0===(null==e?void 0:e.isMobXFlow)}function sn(e,t){return!!e&&(void 0!==t?!!er(e)&&e[H].values_.has(t):er(e)||!!e[H]||$(e)||Pt(e)||Je(e))}function cn(e){return sn(e)}function fn(e,t,n){return e.set(t,n),n}function dn(e,t){if(null==e||"object"!=typeof e||e instanceof Date||!cn(e))return e;if(Ge(e)||Je(e))return dn(e.get(),t);if(t.has(e))return t.get(e);if(Dn(e)){var n=fn(t,e,new Array(e.length));return e.forEach((function(e,r){n[r]=dn(e,t)})),n}if(Qn(e)){var a=fn(t,e,new Set);return e.forEach((function(e){a.add(dn(e,t))})),a}if(Wn(e)){var i=fn(t,e,new Map);return e.forEach((function(e,n){i.set(n,dn(e,t))})),i}var o=fn(t,e,{});return function(e){if(er(e))return e[H].ownKeys_();r(38)}(e).forEach((function(n){u.propertyIsEnumerable.call(e,n)&&(o[n]=dn(e[n],t))})),o}function pn(e,t){return dn(e,new Map)}function hn(e,t){void 0===t&&(t=void 0),bt();try{return e.apply(t)}finally{_t()}}function vn(e){return e[H]}on.bound=V(an);var mn={has:function(e,t){return vn(e).has_(t)},get:function(e,t){return vn(e).get_(t)},set:function(e,t,n){var r;return!!g(t)&&(null==(r=vn(e).set_(t,n,!0))||r)},deleteProperty:function(e,t){var n;return!!g(t)&&(null==(n=vn(e).delete_(t,!0))||n)},defineProperty:function(e,t,n){var r;return null==(r=vn(e).defineProperty_(t,n))||r},ownKeys:function(e){return vn(e).ownKeys_()},preventExtensions:function(e){r(13)}};function gn(e){return void 0!==e.interceptors_&&e.interceptors_.length>0}function yn(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),h((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function bn(e,t){var n=lt();try{for(var a=[].concat(e.interceptors_||[]),i=0,o=a.length;i0}function wn(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),h((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function kn(e,t){var n=lt(),r=e.changeListeners_;if(r){for(var a=0,i=(r=r.slice()).length;a0?e.map(this.dehancer):e},t.intercept_=function(e){return yn(this,e)},t.observe_=function(e,t){return void 0===t&&(t=!1),t&&e({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),wn(this,e)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(e){("number"!=typeof e||isNaN(e)||e<0)&&r("Out of range: "+e);var t=this.values_.length;if(e!==t)if(e>t){for(var n=new Array(e-t),a=0;a0&&dr(e+t+1)},t.spliceWithArray_=function(e,t,n){var r=this;this.atom_;var a=this.values_.length;if(void 0===e?e=0:e>a?e=a:e<0&&(e=Math.max(0,a+e)),t=1===arguments.length?a-e:null==t?0:Math.max(0,Math.min(t,a-e)),void 0===n&&(n=s),gn(this)){var i=bn(this,{object:this.proxy_,type:xn,index:e,removedCount:t,added:n});if(!i)return s;t=i.removedCount,n=i.added}if(n=0===n.length?n:n.map((function(e){return r.enhancer_(e,void 0)})),this.legacyMode_){var o=n.length-t;this.updateArrayLength_(a,o)}var l=this.spliceItemsIntoValues_(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice_(e,n,l),this.dehanceValues_(l)},t.spliceItemsIntoValues_=function(e,t,n){var r;if(n.length<1e4)return(r=this.values_).splice.apply(r,[e,t].concat(n));var a=this.values_.slice(e,e+t),i=this.values_.slice(e+t);this.values_.length+=n.length-t;for(var o=0;o=this.values_.length))return this.atom_.reportObserved(),this.dehanceValue_(this.values_[e]);console.warn("[mobx] Out of bounds read: "+e)},t.set_=function(e,t){var n=this.values_;if(this.legacyMode_&&e>n.length&&r(17,e,n.length),e2?n-2:0),a=2;a-1&&(this.splice(n,1),!0)}};function An(e,t){"function"==typeof Array.prototype[e]&&(Nn[e]=t(e))}function Rn(e){return function(){var t=this[H];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function Tn(e){return function(t,n){var r=this,a=this[H];return a.atom_.reportObserved(),a.dehanceValues_(a.values_)[e]((function(e,a){return t.call(n,e,a,r)}))}}function Ln(e){return function(){var t=this,n=this[H];n.atom_.reportObserved();var r=n.dehanceValues_(n.values_),a=arguments[0];return arguments[0]=function(e,n,r){return a(e,n,r,t)},r[e].apply(r,arguments)}}An("at",Rn),An("concat",Rn),An("flat",Rn),An("includes",Rn),An("indexOf",Rn),An("join",Rn),An("lastIndexOf",Rn),An("slice",Rn),An("toString",Rn),An("toLocaleString",Rn),An("toSorted",Rn),An("toSpliced",Rn),An("with",Rn),An("every",Tn),An("filter",Tn),An("find",Tn),An("findIndex",Tn),An("findLast",Tn),An("findLastIndex",Tn),An("flatMap",Tn),An("forEach",Tn),An("map",Tn),An("some",Tn),An("toReversed",Tn),An("reduce",Ln),An("reduceRight",Ln);var zn,jn,Mn=S("ObservableArrayAdministration",Cn);function Dn(e){return y(e)&&Mn(e[H])}var Un={},In="add",Vn="delete";zn=Symbol.iterator,jn=Symbol.toStringTag;var Fn,Bn,Hn=function(){function e(e,t,n){var a=this;void 0===t&&(t=q),void 0===n&&(n="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[H]=Un,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=t,this.name_=n,m(Map)||r(18),gr((function(){a.keysAtom_=K("ObservableMap.keys()"),a.data_=new Map,a.hasMap_=new Map,e&&a.merge(e)}))}var t=e.prototype;return t.has_=function(e){return this.data_.has(e)},t.has=function(e){var t=this;if(!vt.trackingDerivation)return this.has_(e);var n=this.hasMap_.get(e);if(!n){var r=n=new qe(this.has_(e),G,"ObservableMap.key?",!1);this.hasMap_.set(e,r),Kt(r,(function(){return t.hasMap_.delete(e)}))}return n.get()},t.set=function(e,t){var n=this.has_(e);if(gn(this)){var r=bn(this,{type:n?En:In,object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this.updateValue_(e,t):this.addValue_(e,t),this},t.delete=function(e){var t=this;if((this.keysAtom_,gn(this))&&!bn(this,{type:Vn,object:this,name:e}))return!1;if(this.has_(e)){var n=_n(this),r=n?{observableKind:"map",debugObjectName:this.name_,type:Vn,object:this,oldValue:this.data_.get(e).value_,name:e}:null;return hn((function(){var n;t.keysAtom_.reportChanged(),null==(n=t.hasMap_.get(e))||n.setNewValue_(!1),t.data_.get(e).setNewValue_(void 0),t.data_.delete(e)})),n&&kn(this,r),!0}return!1},t.updateValue_=function(e,t){var n=this.data_.get(e);if((t=n.prepareNewValue_(t))!==vt.UNCHANGED){var r=_n(this),a=r?{observableKind:"map",debugObjectName:this.name_,type:En,object:this,oldValue:n.value_,name:e,newValue:t}:null;0,n.setNewValue_(t),r&&kn(this,a)}},t.addValue_=function(e,t){var n=this;this.keysAtom_,hn((function(){var r,a=new qe(t,n.enhancer_,"ObservableMap.key",!1);n.data_.set(e,a),t=a.value_,null==(r=n.hasMap_.get(e))||r.setNewValue_(!0),n.keysAtom_.reportChanged()}));var r=_n(this),a=r?{observableKind:"map",debugObjectName:this.name_,type:In,object:this,name:e,newValue:t}:null;r&&kn(this,a)},t.get=function(e){return this.has(e)?this.dehanceValue_(this.data_.get(e).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var e=this,t=this.keys();return kr({next:function(){var n=t.next(),r=n.done,a=n.value;return{done:r,value:r?void 0:e.get(a)}}})},t.entries=function(){var e=this,t=this.keys();return kr({next:function(){var n=t.next(),r=n.done,a=n.value;return{done:r,value:r?void 0:[a,e.get(a)]}}})},t[zn]=function(){return this.entries()},t.forEach=function(e,t){for(var n,r=U(this);!(n=r()).done;){var a=n.value,i=a[0],o=a[1];e.call(t,o,i,this)}},t.merge=function(e){var t=this;return Wn(e)&&(e=new Map(e)),hn((function(){b(e)?function(e){var t=Object.keys(e);if(!O)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter((function(t){return u.propertyIsEnumerable.call(e,t)}))):t}(e).forEach((function(n){return t.set(n,e[n])})):Array.isArray(e)?e.forEach((function(e){var n=e[0],r=e[1];return t.set(n,r)})):x(e)?(e.constructor!==Map&&r(19,e),e.forEach((function(e,n){return t.set(n,e)}))):null!=e&&r(20,e)})),this},t.clear=function(){var e=this;hn((function(){ot((function(){for(var t,n=U(e.keys());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.replace=function(e){var t=this;return hn((function(){for(var n,a=function(e){if(x(e)||Wn(e))return e;if(Array.isArray(e))return new Map(e);if(b(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}return r(21,e)}(e),i=new Map,o=!1,l=U(t.data_.keys());!(n=l()).done;){var u=n.value;if(!a.has(u))if(t.delete(u))o=!0;else{var s=t.data_.get(u);i.set(u,s)}}for(var c,f=U(a.entries());!(c=f()).done;){var d=c.value,p=d[0],h=d[1],v=t.data_.has(p);if(t.set(p,h),t.data_.has(p)){var m=t.data_.get(p);i.set(p,m),v||(o=!0)}}if(!o)if(t.data_.size!==i.size)t.keysAtom_.reportChanged();else for(var g=t.data_.keys(),y=i.keys(),_=g.next(),w=y.next();!_.done;){if(_.value!==w.value){t.keysAtom_.reportChanged();break}_=g.next(),w=y.next()}t.data_=i})),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(e,t){return wn(this,e)},t.intercept_=function(e){return yn(this,e)},T(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:jn,get:function(){return"Map"}}]),e}(),Wn=S("ObservableMap",Hn);var $n={};Fn=Symbol.iterator,Bn=Symbol.toStringTag;var Kn=function(){function e(e,t,n){var a=this;void 0===t&&(t=q),void 0===n&&(n="ObservableSet"),this.name_=void 0,this[H]=$n,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=n,m(Set)||r(22),this.enhancer_=function(e,r){return t(e,r,n)},gr((function(){a.atom_=K(a.name_),e&&a.replace(e)}))}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.clear=function(){var e=this;hn((function(){ot((function(){for(var t,n=U(e.data_.values());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.forEach=function(e,t){for(var n,r=U(this);!(n=r()).done;){var a=n.value;e.call(t,a,a,this)}},t.add=function(e){var t=this;if((this.atom_,gn(this))&&!bn(this,{type:In,object:this,newValue:e}))return this;if(!this.has(e)){hn((function(){t.data_.add(t.enhancer_(e,void 0)),t.atom_.reportChanged()}));var n=!1,r=_n(this),a=r?{observableKind:"set",debugObjectName:this.name_,type:In,object:this,newValue:e}:null;n,r&&kn(this,a)}return this},t.delete=function(e){var t=this;if(gn(this)&&!bn(this,{type:Vn,object:this,oldValue:e}))return!1;if(this.has(e)){var n=_n(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:Vn,object:this,oldValue:e}:null;return hn((function(){t.atom_.reportChanged(),t.data_.delete(e)})),n&&kn(this,r),!0}return!1},t.has=function(e){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(e))},t.entries=function(){var e=0,t=Array.from(this.keys()),n=Array.from(this.values());return kr({next:function(){var r=e;return e+=1,rlr){for(var t=lr;t=0&&n++}e=wr(e),t=wr(t);var l="[object Array]"===o;if(!l){if("object"!=typeof e||"object"!=typeof t)return!1;var u=e.constructor,s=t.constructor;if(u!==s&&!(m(u)&&u instanceof u&&m(s)&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1}if(0===n)return!1;n<0&&(n=-1),a=a||[];for(var c=(r=r||[]).length;c--;)if(r[c]===e)return a[c]===t;if(r.push(e),a.push(t),l){if((c=e.length)!==t.length)return!1;for(;c--;)if(!_r(e[c],t[c],n-1,r,a))return!1}else{var f,d=Object.keys(e);if(c=d.length,Object.keys(t).length!==c)return!1;for(;c--;)if(!N(t,f=d[c])||!_r(e[f],t[f],n-1,r,a))return!1}return r.pop(),a.pop(),!0}function wr(e){return Dn(e)?e.slice():x(e)||Wn(e)||E(e)||Qn(e)?Array.from(e.entries()):e}function kr(e){return e[Symbol.iterator]=Sr,e}function Sr(){return this}["Symbol","Map","Set"].forEach((function(e){void 0===a()[e]&&r("MobX requires global '"+e+"' to be available or polyfilled")})),"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:function(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}},extras:{getDebugName:mr},$mobx:H})},64448:function(e,t,n){var r=n(67294),a=n(63840);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n